#include "account_security_widget.h"

#include <QVBoxLayout>

AccountSecurityWidget::AccountSecurityWidget(QWidget *parent)
    : QWidget(parent)
{
    // 创建按钮
    changePasswordButton = new QPushButton(tr("修改密码"));
    logoutButton = new QPushButton(tr("注销账户"));
    exitButton = new QPushButton(tr("退出登录"));

    // 连接按钮的点击信号到槽函数
    connect(changePasswordButton, &QPushButton::clicked, this, []() {
        // 处理修改密码按钮点击事件
    });
    connect(logoutButton, &QPushButton::clicked, this, []() {
        // 处理注销账户按钮点击事件
    });
    connect(exitButton, &QPushButton::clicked, this, []() {
        // 处理退出登录按钮点击事件
    });

    // 创建垂直布局
    QVBoxLayout *layout = new QVBoxLayout;
    layout->addWidget(changePasswordButton);
    layout->addWidget(logoutButton);
    layout->addWidget(exitButton);

    setLayout(layout);
}
